function AdjustTriggerDir(trigger,mobj){
	if(trigger.command=="fwd")
	{
		trigger.command=mobj.direction==1?"fwd":"bkw";
	}else if(trigger.command=="bkw"){
		trigger.command=mobj.direction==1?"bkw":"fwd";
	}
	

	if(trigger.rcommand=="fwd")
	{
		trigger.rcommand=mobj.direction==1?"fwd":"bkw";
	}else if(trigger.rcommand=="bkw"){
		trigger.rcommand=mobj.direction==1?"bkw":"fwd";
	}
};